// import findCarManagement from '../modules/findCarManagement'

//个人中心-寻车
const findCar = [
  {
    path: "/findcar",
    name: "Findcar",
    component: (resolve) => require(["../../views/find/FindCar.vue"], resolve),
    children: [
      {
        path: 'demo',
        name: 'demo',
        component: () => import('@/views/demo.vue')
      },
      // 寻车记录
      {
        path: "findCarRecord",
        name: "FindCarRecord",
        component: (resolve) =>
          require(["../../views/find/FindCarRecord.vue"], resolve),
      },
      // 我的收藏，足迹
      {
        path: "MyFavorite",
        name: "MyFavorite",
        component: (resolve) =>
          require(["../../views/find/MyFavorite.vue"], resolve),
      },
      // 寻车详情
      {
        path: "FindCarDetail",
        name: "FindCarDetail",
        component: (resolve) =>
          require(["../../views/find/FindCarDetail.vue"], resolve),
      },
      // 寻车统计
      {
        path: "FindCarStatistics",
        name: "FindCarStatistics",
        component: (resolve) =>
          require(["../../views/find/FindCarStatistics.vue"], resolve),
      },
      // 寻车统计-排名
      {
        path: "FindCarStatistics/RanksPage",
        name: "RanksPage",
        component: (resolve) =>
          require(["../../views/find/RanksPage.vue"], resolve),
      },
      // 按揭统计
      {
        path: "MortgageStatistic",
        name: "MortgageStatistic",
        component: (resolve) =>
          require(["../../views/find/MortgageStatistic.vue"], resolve),
      },
      // 按揭记录
      {
        path: "MortgageRecode",
        name: "MortgageRecode",
        component: (resolve) =>
          require(["../../views/find/MortgageRecode.vue"], resolve),
      },
      // 按揭记录
      {
        path: "MortgageList",
        name: "MortgageList",
        component: (resolve) =>
          require(["../../views/find/MortgageList.vue"], resolve),
      },
      // 个人中心 => 寻车设置
      {
        path: "findCarSettingUp",
        name: "findCarSettingUp",
        component: (resolve) =>
          require(["../../views/find/findCarSettingUp.vue"], resolve),
      },
      // 个人中心 => 我的爱车
      {
        path: "myDearestCar",
        name: "myDearestCar",
        component: (resolve) =>
          require(["../../views/find/myDearestCar.vue"], resolve),
      },
      // 个人中心 => 寻车管理
      {
        path: "findCarManagement",
        name: "findCarManagement",
        component: (resolve) =>
          require(["../../views/find/findCarManagement/findCarManagement.vue"], resolve),
        children: [
          // ...findCarManagement
        ]
      },
      // 个人中心 => 设置 => 用户协议
      {
        path: 'userAgreement',
        name: 'userAgreement',
        component: (resolve) => require(['../../views/find/userAgreement.vue'], resolve)
      },
      // 个人中心 => 设置 => 用户协议(没有头部)
      {
        path: 'userAgreementNew',
        name: 'userAgreementNew',
        component: (resolve) => require(['../../views/find/userAgreementNew.vue'], resolve)
      },
      // 个人中心 => 设置 => 隐私协议
      {
        path: 'privacyAgree',
        name: 'privacyAgree',
        component: (resolve) => require(['../../views/find/privacyAgree.vue'], resolve)
      },
      // 个人中心 => 设置 => 隐私协议(没有头部)
      {
        path: 'privacyAgreeNew',
        name: 'privacyAgreeNew',
        component: (resolve) => require(['../../views/find/privacyAgreeNew.vue'], resolve)
      },
      // 个人中心 => 设置 => 关于车煮
      {
        path: 'aboutCookCar',
        name: 'aboutCookCar',
        component: (resolve) => require(['../../views/find/aboutCookCar.vue'], resolve)
      },
      // 待支付 寻车协议
      {
        path: '/findCarAgree',
        name: 'findCarAgree',
        component: (resolve) => require(['../../views/find/findCarAgreement.vue'], resolve)
      }
    ],
  },
  {
    path: "/F",
    name: "F",
    component: (resolve) => require(["../../views/find/F.vue"], resolve),
  },
  // 微信登录支付页面
  {
    path: '/payCodeLogin',
    name: 'payCodeLogin',
    component: resolve => require(['../../views/wechatLogin/payCodeLogin.vue'], resolve)
  },
  // 微信打开获取手机验证码页面
  {
    path: '/verificationCode',
    name: 'verificationCode',
    component: resolve => require(['../../views/wechatLogin/verificationCode.vue'], resolve)
  },
  // 微信打开待支付页面
  {
    path: '/newFindCarDetail',
    name: 'newFindCarDetail',
    component: resolve => require(['../../views/wechatLogin/newFindCarDetail.vue'], resolve)
  },
  // 微信打开下载APP页面
  {
    path: '/dowmLoadAPP',
    name: 'dowmLoadAPP',
    component: resolve => require(['../../views/wechatLogin/dowmLoadAPP.vue'], resolve)
  }
];
export default findCar;
